package com.gxa.service;

import com.gxa.common.JsonResult;
import com.gxa.common.R;
import com.gxa.pojo.Dict;

import java.sql.SQLException;

public interface DictService {
    /**
     * 分页查询公告信息
     * @param currentPage 当前页码
     * @param pageSize 每页显示条数
     * @return JsonResult 分页查询响应实体类
     */
    JsonResult queryDict(Integer currentPage, Integer pageSize);

    R add(Dict dict, String date) throws SQLException;

    R del(String[] ids) throws SQLException;

    R mod(Dict dict, String date) throws SQLException;

    JsonResult searchDict(Integer currentPage, Integer pageSize, String dict_name);
}
